package com.woniu.controller;

import com.woniu.service.AlertValuesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class AlertValuesController {


    @Autowired
    private AlertValuesService alertValuesService;

    @RequestMapping("saveAlertvalues")
    public boolean save(Integer javascore,
                        Integer testscore,
                        Integer webscore){

        alertValuesService.save(javascore,testscore,webscore);
        return true;
    }
}
